
import { defineStore } from 'pinia'
 const appStore = defineStore({
  id: 'app', // 必须指明唯一的pinia仓库的id
  state: () => {
    return {
        device: 'desktop',
    }
  },
  getters: {},
  actions: {
    ToggleDevice: (state, device) => {
        this.device = device
      },
  }
})

export default appStore